//
//  TimingPatternScheduleViewController.h
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 4/23/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Agency.h"
#import "SubSystem.h"
#import "TimingPattern.h"
#import "TableSection.h"
#import "TimeRange.h"
#import "XMLParser.h"
#import "CustomizedBarButtonItem.h"


@interface TimingPatternScheduleViewController : UITableViewController <UIPickerViewDelegate>


@property (nonatomic,retain) Agency *agency;
@property (nonatomic,retain) SubSystem *subSystem;
@property (nonatomic,retain) TimingPattern *timingPattern;
@property (assign) int index;

@property (nonatomic,retain) NSMutableArray *sections;
@property (nonatomic,retain) TableSection * beginTimeSection;
@property (nonatomic,retain) TableSection * endTimeSection;
@property (nonatomic,retain) UIDatePicker *beginTimePicker;
@property (nonatomic,retain) UIDatePicker *endTimePicker;
@property (assign) int publicSender;



- (id) initWithNibNameAndTimingPattern:(NSString *)nibName timingPattern:(TimingPattern *)timingPattern subSystem:(SubSystem *)subSystem agency:(Agency *)agency index:(int)index bundle:(NSBundle *)nibBundle;

@end
